#pragma once

struct mfile
{
    void * memory;
    long   memory_size;

    int    __fd;
    int    __temporary;
    char * __path;
};


extern
struct
mfile * mmap_file(const char * file_path
                  , long file_size
                  , int  mode
                  );

extern
void  munmap_file(struct mfile * mfile);
